home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
util1
/
memdv371.lha
/
memory-device
/
source
/
rt.asm
< prev
next >
Wrap
Assembly Source File
|
1995-12-20
|
2KB
|
99 lines
;*
;* $VER: rt.asm 1.0 (20 Dec 1995)
;*
;* memory.device - direct memory access
;*
;* (C) Copyright 1995 Marius Gröger
;* All Rights Reserved
;*
;* Inspired by z2ram device in Linux/68k/Amiga
;*
;* 20 Dec 1995 : 001.000 : created
;*
;*
;* include files
;*
IFND EXEC_NODES_I
INCLUDE "exec/nodes.i"
ENDC
IFND EXEC_RESIDENT_I
INCLUDE "exec/resident.i"
ENDC
IFND EXEC_INITIALIZERS_I
INCLUDE "exec/initializers.i"
ENDC
IFND DOS_DOS_I
INCLUDE "dos/dos.i"
ENDC
INCLUDE "memory.i"
INCLUDE "memory-device_rev.i"
;*
;* imports
;*
xref _DevInit
xref _DevOpen
xref _DevClose
xref _DevExpunge
xref _DevExtFunc
xref _DevBeginIO
xref _DevAbortIO
section "text",code
moveq #RETURN_FAIL,d0
rts
romtag:
dc.w RTC_MATCHWORD
dc.l romtag
dc.l endskip
dc.b RTF_AUTOINIT
dc.b VERSION
dc.b NT_DEVICE
dc.b 0 ; priority
dc.l devname
dc.l devid
dc.l inittable
devname:
dc.b "memory.device",0
dc.b 0,'$VER: '
devid:
VSTRING
cnop 0,2
inittable:
dc.l MemoryBase_SIZE
dc.l functable,datatable,_DevInit
functable:
dc.l _DevOpen
dc.l _DevClose
dc.l _DevExpunge
dc.l stub
dc.l _DevBeginIO
dc.l _DevAbortIO
dc.l -1
datatable:
INITBYTE LN_TYPE,NT_DEVICE
INITLONG LN_NAME,devname
INITBYTE LIB_FLAGS,LIBF_SUMUSED!LIBF_CHANGED
INITWORD LIB_VERSION,VERSION
INITWORD LIB_REVISION,REVISION
INITLONG LIB_IDSTRING,devid
dc.w 0
stub:
moveq #0,d0
rts
endskip:
END